<template>
  <div id="app">
    <router-link to="/">首页</router-link>
    <br />
    <router-link to="/hello2">hello2</router-link>
    <br />
    <router-link to="/sayhi">sayhi</router-link>
    <br />
    <!-- <router-link to="/helloword">hello1</router-link><br>
    <router-link to="/hello">hello</router-link><br>
    -->
    <router-view></router-view>

    <p>我是App.vue中的p， gettersMsg 的值是----- {{gettersMsg}}</p>
    <p>完成的列表有：{{doneTodosCount}}</p>
  </div>
</template>

<script>
import { mapGetters } from "vuex";
export default {
  name: "app",
  computed: {
    ...mapGetters(["gettersMsg","doneTodosCount"]),
  },
};
</script>


<style>
#app {
  font-family: Avenir, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
  color: #2c3e50;
  margin-top: 60px;
}
</style>
